!function n(t, e, o) {
    function r(a, l) {
        if (!e[a]) {
            if (!t[a]) {
                var u = "function" == typeof require && require;
                if (!l && u)
                    return u(a, !0);
                if (i)
                    return i(a, !0);
                var c = new Error("Cannot find module '" + a + "'");
                throw c.code = "MODULE_NOT_FOUND",
                    c
            }
            var f = e[a] = {
                exports: {}
            };
            t[a][0].call(f.exports, function(n) {
                var e = t[a][1][n];
                return r(e ? e : n)
            }, f, f.exports, n, t, e, o)
        }
        return e[a].exports
    }
    for (var i = "function" == typeof require && require, a = 0; a < o.length; a++)
        r(o[a]);
    return r
}({
    1: [function(n, t, e) {
        (function(n) {
                var e, o, r;
                r = function(n) {
                    var t, e;
                    try {
                        return n.location.origin || (e = n.location.port,
                            n.location.origin = n.location.protocol + "//" + n.location.hostname + (null != e ? e : ":" + e || "")),
                        (null == n || !n.location.origin.match(/static\.olark\.com$/)) && (null != n && n.parent.document,
                            !0)
                    } catch (n) {
                        return t = n,
                            !1
                    }
                }
                    ,
                    e = function(t) {
                        if (t = t || n.window)
                            return r(t) && t !== n.window.top ? (null != t ? t.parent.olark : void 0) ? t.parent : e(t.parent) : t
                    }
                    ,
                    o = e(),
                    t.exports = {
                        getOlark: function() {
                            return null != o ? o.olark : void 0
                        },
                        getWindow: function() {
                            return o
                        },
                        getDocument: function() {
                            return null != o ? o.document : void 0
                        },
                        getLocation: function() {
                            return null != o ? o.location : void 0
                        },
                        getProtectedWindow: function() {
                            return n.window
                        },
                        manuallySetHostWindow: function(n) {
                            return o = n
                        }
                    }
            }
        ).call(this, "undefined" != typeof global ? global : "undefined" != typeof self ? self : "undefined" != typeof window ? window : {})
    }
        , {}],
    2: [function(n, t, e) {
        var o, r, i, a, l;
        o = [/^static.olark.com$/, /^.+\.olark\.net:900[1-2]$/, /^localhost:900[1-2]$/, /((^127\.)|(^10\.)|(^172\.1[6-9]\.)|(^172\.2[0-9]\.)|(^172\.3[0-1]\.)|(^192\.168\.)).+:900[1-2]/],
            a = function(n) {
                var t, e, r, i, a, l, u, c;
                a = null;
                try {
                    a = localStorage.getItem("OLARK_HOST")
                } catch (n) {
                    r = n
                }
                for (i = !1,
                         u = 0,
                         c = o.length; u < c; u++)
                    l = o[u],
                    l.test(a) && (i = !0);
                return i || (a = null),
                    e = n.olark._.l.replace(/loader[0-1]?\.js/, "app.js"),
                    t = e.split("/").shift(),
                a && (e = e.replace(t, a)),
                "" + e
            }
            ,
            l = function(n, t) {
                var e;
                return e = n.body,
                    e.parentNode.insertBefore(t, e)
            }
            ,
            r = function(n, t, e) {
                var o;
                if (!r.done)
                    return o = t.createElement("script"),
                        o.type = "text/javascript",
                        o.async = !0,
                        o.src = e,
                        l(t, o),
                        r.done = !0
            }
            ,
            i = function(n, t, e) {
                var o, i, a, l;
                return o = t.createElement("iframe"),
                    o.setAttribute("data-olark", !0),
                    o.setAttribute("aria-hidden", !0),
                    i = (o.frameElement || o).style,
                    i.cssText = "width:0px;height:0px;position:absolute;left:0px;bottom:0px;border:none;",
                    a = 0,
                    (l = function() {
                            if (t.body)
                                return a = 0,
                                    t.body.appendChild(o),
                                    r.done = !1,
                                    o.contentWindow.document.open().write(""),
                                    o.contentWindow.document.close(),
                                    "complete" === o.contentDocument.readyState ? r(o.contentWindow, o.contentDocument, e) : o.contentWindow.onload = function() {
                                        return r(o.contentWindow, o.contentDocument, e)
                                    }
                                    ;
                            if (a += 1,
                            a > 100)
                                throw new Error("[olark] Could not access document.body when trying to write the olark iframe");
                            return setTimeout(l, 100)
                        }
                    )()
            }
            ,
            t.exports = {
                fif: i,
                getApplicationUrl: a
            }
    }
        , {}],
    3: [function(n, t, e) {
        var o, r, i, a, l;
        r = !1,
            o = /OLARK_DEBUG=true/g,
            i = "Olark is currently undergoing scheduled maintenance. To see up-to-date status visit: http://status.olark.com",
            a = function(n) {
                var t;
                if ("undefined" != typeof window && null !== window && null != (t = window.console) ? t.warn : void 0)
                    return console.warn("[olark]", n)
            }
            ,
            l = function(n) {
                var t;
                return r ? document.location.search && (t = document.location.search.split("?").pop(),
                    o.test(t)) ? (a("Loading jsclient while in maintenance mode"),
                    n()) : a(i) : n()
            }
            ,
            t.exports = {
                logToConsoleAndBootIfAllowed: l
            }
    }
        , {}],
    4: [function(n, t, e) {
        var o, r, i;
        o = n("../chatbox/HostPage"),
            i = n("./friendlyIframe"),
            r = n("./olark-shim").createOlarkShim,
            t.exports = function(n, t) {
                var e, o, a;
                return e = function() {
                    var e, o, r, i;
                    for (i = t.querySelectorAll("[data-olark]"),
                             o = 0,
                             r = i.length; o < r; o++)
                        if (e = i[o],
                        "IFRAME" === e.tagName)
                            return e.contentWindow;
                    return n
                }
                    ,
                    o = function(n, t) {
                        var e;
                        if (t)
                            return setTimeout(function() {
                                return o(n)
                            }, 0);
                        try {
                            return n.remove()
                        } catch (t) {
                            if (e = t,
                                null != n ? n.parentElement : void 0)
                                return n.parentElement.removeChild(n)
                        }
                    }
                    ,
                    n.olark._.reset = a = function() {
                        var l, u, c, f, d, s, p, m;
                        for (s = n.olark,
                                 d = s._.l,
                                 u = [],
                                 l = s._.preloadCallstack.shift(); l; )
                            u.push(l),
                                l = s._.preloadCallstack.shift();
                        for (e().onunload = function() {
                            return s = r(n, d, "loader-reset"),
                                s._.s = u,
                                s._.reset = a,
                                i.fif(n, t, i.getApplicationUrl(n))
                        }
                                 ,
                                 m = t.querySelectorAll("[data-olark]"),
                                 c = 0,
                                 f = m.length; c < f; c++)
                            p = m[c],
                                o(p, "IFRAME" === p.tagName);
                        return !1
                    }
            }
    }
        , {
            "../chatbox/HostPage": 1,
            "./friendlyIframe": 2,
            "./olark-shim": 5
        }],
    5: [function(n, t, e) {
        var o;
        o = function(n, t, e) {
            var o;
            return o = {
                s: [],
                t: [(new Date).getTime()],
                c: {},
                l: t,
                P: [],
                legacyLoaderName: e || "loader-reset"
            },
                n.olark = function() {
                    return o.s.push(arguments),
                        o.t.push((new Date).getTime()),
                        this
                }
                ,
                n.olark._ = o,
                n.olark.extend = function(t, e) {
                    return n.olark("extend", t, e)
                }
                ,
                n.olark.identify = function(t) {
                    return n.olark("identify", o.i = t)
                }
                ,
                n.olark.configure = function(t, e) {
                    return n.olark("configure", t, e),
                        o.c[t] = e
                }
                ,
                n.olark
        }
            ,
            t.exports = {
                createOlarkShim: o
            }
    }
        , {}],
    6: [function(n, t, e) {
        (function(t) {
                var e = t.window || window
                    , o = e.document;
                n("../../loaders/olark-reset")(e, o);
                var r = n("../../loaders/friendlyIframe")
                    , i = n("../../loaders/maintenance");
                i.logToConsoleAndBootIfAllowed(function() {
                    r.fif(e, o, r.getApplicationUrl(e))
                })
            }
        ).call(this, "undefined" != typeof global ? global : "undefined" != typeof self ? self : "undefined" != typeof window ? window : {})
    }
        , {
            "../../loaders/friendlyIframe": 2,
            "../../loaders/maintenance": 3,
            "../../loaders/olark-reset": 4
        }]
}, {}, [6]);
